/* eslint-disable jsdoc/require-param */
'use strict';

/**
 * 话题分类
 */
function initTheme(router, controller) {
  // 用户话题
  router.get('/api/theme/user', controller.theme.all);
  router.post('/api/theme/add', controller.theme.add);
  router.post('/api/theme/dislike', controller.themeDislike.dislike);
  router.delete('/api/theme/cancleDislike', controller.themeDislike.cancleDislike);
  //广场话题
  router.get('/api/theme/square', controller.theme.square);
  //话题详情
  router.get('/api/theme/:id', controller.theme.show);
}

module.exports = initTheme;
